package cn.nekocode.meepo.sample;

import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

/**
 * @author nekocode (nekocode.cn@gmail.com)
 */
public class AActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_child);
        Uri uri = getIntent().getData();
        Log.d("GGG", uri == null ? "1-b" : "0-a");
        Log.d("GGG", uri.getQueryParameter("aa") == null ? "1-getQueryParameter" : "0-getQueryParameter");
        Log.d("GGG", uri.getQueryParameter("aa")+" - "+uri.getQueryParameter("bb"));
        setTitle(getIntent().getData().getQueryParameter("title"));
    }
}
